#ifndef GAME_CORE_H
#define GAME_CORE_H

#include "../inc/st7735.h"
#include <string.h>

typedef enum {
    GAME_NONE,
    GAME_GOMOKU,
    GAME_SOKOBAN,
} GameType;

typedef enum {
    GAME_STATE_MENU,
    GAME_STATE_RUNNING,
    GAME_STATE_PAUSED,
    GAME_STATE_GAME_OVER,
} GameState;

void Game_Init(void);
void Game_Enter(GameType game);
void Game_Exit(void);
void Game_HandleCommand(const char *command); // 接收 button -l/-r/-u/-b/-o/-c
void Game_Update(void); // 刷新游戏状态
void Game_Render(void); // 绘制当前游戏界面

#endif